package ah.ddh.test;

import java.io.File;
/**
 * 删除带？号的文件名，xp下测试过不行
 * @author user
 *
 */
public class DelFile {

	public static void main(String[] args) throws Exception {
		File file = new File("D:\\ubuntu\\");
		File[] files = file.listFiles();
		System.out.println(files[0].renameTo(new File("D:\\ubuntu\\aa.bin")));
		System.out.println(files[0].delete());
		file.delete();
	}
}
